import config from '../../config/index'
import { wsCache } from '..'

export default function(self) {
  const appCode =
    self.$route.query.appCode ||
    wsCache.get(config.businessAppLsName) ||
    config.businessAppCode
  return appCode ? `?appCode=${appCode}` : ''
}
